<?php
class SignupForm extends MForm {
    public function __construct() {
        parent::__construct(__route('ml-microblog/home/signup'));
        $this->setMethod(self::METHOD_POST);
        $this->setId('signupForm');
        $this->add(self::ELEMENT_TEXT, 'signupLogin')
            ->setLabel('Login');
        $this->add(self::ELEMENT_PASSWORD, 'signupPassword')
            ->setLabel('Password');
        $this->add(self::ELEMENT_TEXT, 'signupDisplayName')
            ->setLabel('Display name');
        $this->add(self::ELEMENT_TEXT, 'signupMail')
            ->setLabel('E-mail');
        $this->add(self::ELEMENT_SUBMIT, 'signupSubmit');
    }
}
?>
